package org.example.springmvc.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: Hello01Controller
 * Package: org.example.springmvc.controller
 * Description: springmvc入门
 *
 * @Author wanghao
 * @Create 2024-07-11 8:29
 * @Version 1.0
 */
@Controller
public class Hello01Controller {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("/h01")
    public String h01() {
        logger.info("h01方法执行了");
        return "succ";
    }

    @RequestMapping("/hello/*")
    public String h02() {
        logger.info("h02方法执行了");
        return "succ";
    }
}
